package io;

import java.io.IOException;

import org.jdom2.JDOMException;

/**
 * This class provides access to ManHasKey data for the peer review system.
 * 
 * @author Lun-Wei Chang
 * 
 * @version March 11, 2014
 * 
 */
public class ManHasKeyAccess extends AbstractAccess {
  /** Position of manhaskey id element in the XML file. */
  public static final int MANKEY_ID = 0;
  /** Position of manhaskey summary element in the XML file. */
  public static final int REVIEW_ID = 1;
  /** Position of manhaskey rationale element in the XML file. */
  public static final int KEYWORDS_ID = 2;
  
  /** Name of the XML's file. */
  private static final String XMLFILE = "ManHasKey.xml";
  
  /** A constant for the manhaskey id element in the XML file. */
  private static final String MANKEYID = "RecID";
  /** A constant for the review id element in the XML file. */
  private static final String REVIEWID = "RecSummary";
  /** A constant for the keywords id element in the XML file. */
  private static final String KEYWORDSID = "RecRationale";
  
  
  /** 
   * The constructor to instantiate the ManHasKeyAccess objects.
   * @throws IOException If there is a problem establishing connectivity to the file.
   * @throws JDOMException If the file cannot be correctly parsed.
   */
  public ManHasKeyAccess() throws IOException, JDOMException {
    super(XMLFILE);
  }
}
